﻿<%@ Page Language="C#" MasterPageFile="~/ytba.Master" AutoEventWireup="true" CodeBehind="SanPham.aspx.cs"
    Inherits="SES.CMS.SanPham" Title="Untitled Page" %>

<%@ Register Src="Module/ucProductLeftMenu.ascx" TagName="ucProductLeftMenu" TagPrefix="uc1" %>
<%@ Register Src="Module/ucLeftMenu.ascx" TagName="ucLeftMenu" TagPrefix="uc2" %>
<%@ Register Src="Module/ucRightMenu.ascx" TagName="ucRightMenu" TagPrefix="uc3" %>
<%@ Register Src="Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc5" %>
<%@ Register Src="Module/ucSupportOnline.ascx" TagName="ucSupportOnline" TagPrefix="uc6" %>
<%@ Register Src="Module/ucShopInfo.ascx" TagName="ucShopInfo" TagPrefix="uc7" %>
<%@ Register TagPrefix="cp" Namespace="SiteUtils" Assembly="CollectionPager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="margin-20">
    </div>
    <div class="conainer-body">
        <div class="body-left">
            <div class="sidebar-line">
            </div>
            <uc1:ucProductLeftMenu ID="ucProductLeftMenu1" runat="server" />
            <div class="sidebar-line">
            </div>
            <uc6:ucSupportOnline ID="ucHoTro1" runat="server" />
        </div>
        <div class="body-right">
            <uc5:ucBreadcrumb runat="server" ID="brc1" />
            <div class="product-wrap">
                <ul class="list-product">
                    <asp:Repeater runat="server" ID="rpt">
                        <ItemTemplate>
                            <li>
                                <div class="product-image-wrap">
                                    <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                                        <img src='/Media/<%#Eval("HinhAnh")%>' title='<%#Eval("TenSanPham")%>' alt='<%#Eval("TenSanPham")%>'
                                            class="bear1" />
                                    </a>
                                </div>
                                <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                                    <h2 class="product-title">
                                        <%#Eval("TenSanPham")%>
                                    </h2>
                                </a>
                                <div class="product-price-wrap">
                                    <span class="product-price">
                                        <%#Eval("DonGia","{0:0,0}")%>
                                        đ</span><a class="product-detail" href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>Xem</a>
                                </div>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
             <div style="width: 100%; margin-top: 10px;">
        <div class="collection">
            <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
                LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
                PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
                PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
                ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
                ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
            </cp:CollectionPager>
            <div class="collectPage">
                Page:</div>
        </div>
    </div>
            <asp:Label runat="server" Text="" ID="lbThongbao"></asp:Label>
        </div>
        <div style="width: 100%; float: left; margin-top: 10px; display:none;">
            <div style="float: left;">
                <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                    ImageUrl="~/images/prevpage.png" /></div>
            <div style="float: right;">
                <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                    ImageUrl="~/images/nextpage.png" /></div>
        </div>
    </div>
</asp:Content>
